package com.cqemme.comm.enums;


import java.util.HashMap;
import java.util.Map;

/**s
 * @author amkj
 */

public enum EnumWeekDays {
    Monday( 1,"周一"),
    Tuesday(2,"周二"),
    Wednesday(3,"周三"),
    Thursday(4,"周四"),
    Friday(5,"周五"),
    Saturday(6,"周六"),
    Sunday(7,"周日")
    ;

    private final String name;
    private final int idx;


    EnumWeekDays(int idx, String name ){
        this.name = name;
        this.idx = idx;
    }
    

    public String getName() {
        return this.name;
    }

    public int getIdx() {
        return this.idx;
    }



    public static Map<String,String> getMap() {
        Map<String,String> map=new HashMap<String,String>();
        EnumWeekDays[] p = values();
        for (EnumWeekDays type : p) {
            map.put(String.valueOf(type.getIdx()), type.getName());
        }
        return map;
    }
    public static Map<Integer,String> getRealMap() {
        Map<Integer,String> map=new HashMap<Integer,String>();
        EnumWeekDays[] p = values();
        for (EnumWeekDays type : p) {
            map.put(type.getIdx(), type.getName());
        }
        return map;
    }
}
